package org.dromara.iot.domain.bo;

import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.iot.domain.IotRescueRecord;

/**
 * 救援记录业务对象 iot_rescue_record
 *
 * @author lsl
 * @date 2024-06-23
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = IotRescueRecord.class, reverseConvertGenerate = false)
public class IotRescueRecordBo extends BaseEntity {

    /**
     * 救援记录ID
     */
    @NotBlank(message = "救援记录ID不能为空", groups = {EditGroup.class})
    private String recordId;

    /**
     * 困人ID
     */
    @NotNull(message = "困人ID不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long tiringId;

    /**
     * 用户ID
     */
    @NotNull(message = "用户ID不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long userId;

    /**
     * 困人状态
     */
    @NotBlank(message = "困人状态不能为空", groups = {AddGroup.class, EditGroup.class})
    private String tiringState;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = {AddGroup.class, EditGroup.class})
    private String remark;


}
